<template>
  <div class="home">
    <Navbar msg="主题" class="header"/>
    <Page />
    <!-- :topic="topic" -->
  </div>
</template>

<script>
import Navbar from '@/components/Navbar'
import Page from '@/components/Page'
export default {
  name: 'Topic',
  components: {
    Navbar,
    Page
  },
  // computed: {
  //   tid() {
  //     return this.$route.params.tid;
  //   },
  //   topic() {
  //     return this.$store.state.topic;
  //   }
  // },
  // created() {
  //   this.$store.commit('getTopic', this.$route.params.tid);
  //   console.log(this.$store.state.topic);
  // }
}
</script>

<style lang="less">
.home{
  width: 100%;
  height: auto;
  .header{
    z-index: 1;
    background: rgba(255, 255, 255, 0.9);
    position: fixed;
    left: 0;
    top: 0;
    box-shadow: 0 0 4px rgba(0, 0, 0, .25);
  }
}
</style>